Generic language application programming interface interpreter

ABSTRACT

Technical solutions are described for facilitating a first computer program product to communicate with a second computer program product. The first computer program product invokes an application programming interface (API) function from an API of the second computer program product, where the first computer program product and the second computer program product use distinct programming languages. The solutions described herein initiate a record corresponding to the API function and invoke an interpreter that calls the API function in the second programming language. Upon receiving, from the interpreter, an indication that the API function has completed execution, result of the execution are obtained from the record and returned to the first computer program product.

DOMESTIC PRIORITY

This application is a continuation of U.S. Non-Provisional applicationSer. No. 14/951,552, entitled “GENERIC LANGUAGE APPLICATION PROGRAMMINGINTERFACE INTERPRETER,” filed Nov. 25, 2015, which is incorporatedherein by reference in its entirety.

BACKGROUND

The present application relates to computer technology, and morespecifically, to interpreters that decode a programming language.

Typically, computer technology products, such as hardware, software, anda combination thereof, include an Application Programming Interface(API). An API is a set of functions that facilitates a user to developand integrate applications, such as by writing computer programs tocommunicate and control attributes and/or features of the product. Forexample, hardware such as co-processors, field programmable gate array(FPGA) boards, robotic kits, and other such products include arespective. Further, software products such as browsers, integrateddevelopment environments (IDEs), graphics libraries, and many other suchsoftware products include a respective API. Further yet, products suchas smartphones, smartwatches, and many other products that arecombination of hardware and software include a respective API.

SUMMARY

According to an embodiment, a computer implemented method forfacilitating a first computer program product to communicate with asecond computer program product includes receiving, from the firstcomputer program product, an identification of an applicationprogramming interface (API) function from an API of the second computerprogram product. The first computer program product includes computerexecutable instructions in a first programming language and the API ofthe second computer program product includes computer executableinstructions in a second programming language. The first programminglanguage is distinct from the second programming language. The computerimplemented method also includes initiating a record corresponding tothe API function. The computer implemented method also includes invokingan interpreter corresponding to the second programming language thatcalls the API function in the second programming language. The computerimplemented method also includes receiving, from the interpreter, anindication that execution of the API function is complete. The computerimplemented method also includes accessing a result of the execution ofthe API function from the record. The computer implemented method alsoincludes returning, to the first computer program product, the result ofthe execution of the API function.

According to another embodiment, a system for facilitating a firstcomputer program product to communicate with a second computer programproduct includes a memory and a processor. The memory includes computerexecutable instructions of the first program product, where the computerexecutable instructions includes an invocation of an applicationprogramming interface (API) function from an API of the second computerprogram product. The computer executable instructions of the firstcomputer program product are in a first programming language, and theAPI of the second computer program product includes computer executableinstructions in a second programming language, the first programminglanguage distinct from the second programming language. The processorinitiates a record corresponding to the API function. The processor alsoexecutes an interpreter corresponding to the second programming languagethat calls the API function in the second programming language. Theprocessor also receives, from the interpreter, an indication thatexecution of the API function is complete. The processor also accesses aresult of the execution of the API function from the record. Theprocessor also returns, to the first computer program product, theresult of the execution of the API function.

Yet another embodiment includes a computer program product forfacilitating a first computer program product to communicate with asecond computer program product. The computer product includes computerreadable storage medium, the computer readable storage medium includingcomputer executable instructions. The computer readable storage mediumincludes instructions to receive, from the first computer programproduct, an invocation of an application programming interface (API)function from an API of the second computer program product. Thecomputer executable instructions of the first computer program productare in a first programming language, and the API of the second computerprogram product includes computer executable instructions in a secondprogramming language. The first programming language is distinct fromthe second programming language. The computer readable storage mediumalso includes instructions to initiate a record corresponding to the APIfunction. The computer readable storage medium also includesinstructions to execute an interpreter corresponding to the secondprogramming language that calls the API function in the secondprogramming language. The computer readable storage medium also includesinstructions to receive, from the interpreter, an indication thatexecution of the API function is complete. The computer readable storagemedium also includes instructions to access a result of the execution ofthe API function from the record. The computer readable storage mediumalso includes instructions to return, to the first computer programproduct, the result of the execution of the API function.

BRIEF DESCRIPTION OF THE DRAWINGS

The examples described throughout the present document may be betterunderstood with reference to the following drawings and description. Thecomponents in the figures are not necessarily to scale. Moreover, in thefigures, like-referenced numerals designate corresponding partsthroughout the different views.

FIG. 1 illustrates an example system facilitating a user application tocall an API function of a product in accordance with an embodiment.

FIG. 2 illustrates an example user application in accordance with anembodiment.

FIG. 3 illustrates an example user application in accordance with anembodiment.

FIG. 4 illustrates an example generic language application programminginterface interpreter in accordance with an embodiment.

FIG. 5 illustrates a flowchart of example logic to update a genericlanguage application programming interface interpreter in accordancewith an embodiment.

FIG. 6 illustrates a flowchart of example logic for a user applicationto call an API function of a product in accordance with an embodiment.

FIG. 7 illustrates an example a user application calling an API functionof a product in accordance with an embodiment.

DETAILED DESCRIPTION

A product may support multiple Application Programming Interfaces (APIs)in different programming languages. For example, the APIs may beidentical in functionality, but use different in programming languages.Supporting different programming languages facilitates a user, such asan end-user, a tester, an application programmer, or any other user,that accesses the attributes and/or features of the product to use anAPI with a programming language which suits that user. For example, anapplication programmer may be experienced in developing applicationsusing the C programming language. Accordingly, providing an API thatsupports the C programming language facilitates the applicationprogrammer to develop applications for the product, such as to extendthe functionality and/or a use of the product. In addition, if a secondapplication programmer is more experienced (or comfortable) indeveloping applications using the JAVA programming language, providingan API that supports the JAVA programming language facilitates thesecond application programmer to extend the functionality and/or the useof the product. Accordingly, product manufacturers, typically providemultiple APIs, each supporting different programming languages, for aproduct.

However, providing multiple APIs entails testing all the APIs. Testingmultiple APIs, in turn, typically includes implementing code in eachprogramming language that the API is provided in. Thus, a test suite foreach API language has to be maintained, and further, staff withexpertise in each respective API language has to be available.

Alternatively, a product manufacturer may modify computer executableinstructions of a program or a test, using a specific interface betweeneach API language that a user wishes to use. For example, the Cprogramming language can communicate with the JAVA programming languageusing a JAVA supported interface, such as the JAVA Native Interface(JNI); or the C programming language can communicate with the C#(C-Sharp) programming language using sockets or piping. However, suchmodification is far from trivial or quick to implement, particularly ifwithout knowledge and/or experience in specific interfaces between theseveral programming languages, and thus, staff with expertise in eachrespective API language has to be available.

The technical solutions described herein provide a generic language APIinterpreter (GLAI). The GLAI acts as an interface between a firstprogramming language, such as a user's program, or a test program, andthe multiple languages that the product supports through the providedAPIs. The GLAI is configurable to select which API to use, facilitatingcomputer executable instructions in the first programming language toinvoke functions from any of the API languages supported by the product.

Thus, the user can write an application in a programming language ofchoice, and the GLAI facilitates the application to communicate with theproduct via one of the several API languages supported by the product,without the user having to know the API language. Thus, the GLAI reducesthe amount of time the user takes to develop the application, or to testmultiple the APIs in different languages. Further, the GLAI increasesmaintainability and agility of the computer executable instructions ofthe multiple APIs. Additionally, if the product manufacturer, or anyother entity, adds a new API in a new language for the product, theuser's program continues to communicate with the product using the newAPI with little or no change to the user's program. Further yet, theGLAI helps the product manufacturer to minimize a skill set or know howto use multiple programming languages to test the multiple APIs of theproduct.

FIG. 1 illustrates an example system 100 for facilitating a userapplication 122 to interact with a product 150. The system 100 includes,among other components, a processor 110, a memory 120, and systemcircuitry 130. The system 100 is a computer that includes hardware, suchas electronic circuitry. For example, the system 100 may be a desktopcomputer, a server computer, a laptop computer, a tablet computer, asmartphone, or any other computing device that executes computerexecutable instructions. In an example, the system 100 is used inconjunction with the product 150, for example to enhance thefunctionality of the product 150. In another example, the system 100tests the functionality of the product 150.

The processor 110 may be a central processor of the system 100 and isresponsible for execution of an operating system, control instructions,and applications installed on the system 100. The processor 110 may beone or more devices operable to execute logic. The logic may includecomputer executable instructions or computer code embodied in the memory120 or in other memory that when executed by the processor 110, causethe processor 110 to perform the features implemented by the logic. Thecomputer code may include instructions executable with the processor110. The computer code may include embedded logic. The computer code maybe written in any computer language now known or later discovered, suchas C++, C#, Java, Pascal, Visual Basic, Perl, HyperText Markup Language(HTML), JavaScript, assembly language, shell script, or any combinationthereof. The computer code may include source code and/or compiled code.The processor 110 may be a general processor, central processing unit,server, application specific integrated circuit (ASIC), digital signalprocessor, field programmable gate array (FPGA), digital circuit, analogcircuit, or combinations thereof. The processor 110 may be incommunication with the memory 120, the system circuitry 130, and othercomponents of the system 100.

The memory 120 is a non-transitory computer storage medium. The memory120 includes primary memory and secondary memory of the system 100. Thememory 120 may include volatile memory such as dynamic random accessmemory (DRAM), static random access memory (SRAM), Flash memory, or anyother type of volatile memory or a combination thereof. The memory 120may include a magnetic disk, an optical disk, a hard disk drive (HDD), asolid-state drive (SSD), or any other type of non-volatile memory or acombination thereof. The memory 120 stores control instructions andapplications executable by the processor 110. The memory 120 may containother data such as images, videos, documents, spreadsheets, audio files,and other data that may be associated with operation of the system 100.

The system circuitry 130 includes hardware components that the processor110 uses to execute the technical solutions described herein. Forexample, the system circuitry 130 may include input/output peripheralssuch as a keyboard and mouse. Alternatively or in addition, the systemcircuitry 130 includes human interaction components such as display andaudio input/output circuitry. Alternatively or in addition, the systemcircuitry 130 includes computational devices such as a graphicsprocessing unit (GPU), arithmetic unit (AU), or any other co-processor.

The product 150 is a computer program product that is extendable viasupported APIs 127. The product 150 may support multiple APIs 127A-127N.Each API 127A-127N includes computer executable instructions indifferent programming languages. For example, the API-1 127A may be inthe C programming language, the API-2 127B may be in the JAVAprogramming language, and so on. Of course, different examples mayinclude the supported APIs 127 in different programming languages. In anexample, the product 150 is part of the system 100. For example, theproduct 150 may be an application that includes computer executableinstructions stored in the memory 120. In another example, the product150 may be separate from the system 100. For example, the product 150may be a peripheral device of the system 100, such as a mouse or akeyboard, or any other peripheral device, the functionality of which thesystem 100 extends via the supported APIs 127. In another example, theproduct 150 is a separate computer, such as a smartphone, a robotic kit,or any other apparatus, the functionality of which the system 100extends via the supported APIs 127. The system 100 communicates with theproduct 150. The communication may be wired or wireless. For example,the product 150 may communicate with the system 100 via a communicationport such as an Ethernet port, a universal serial bus (USB) port, or anyother such communication port. In another example, the product 150 andthe system 100 communicate wirelessly, such as via WI-FI™, BLUETOOTH™,or any other wireless communication protocols.

The user application 122 is an application that the user of the product150 has developed. For example, the user application 122 is a computerprogram product that includes computer executable instructions that theprocessor 110 executes. The user application 122 may use any programminglanguage, such as the C programming language, the JAVA programminglanguage, or any other programming language of the user's choice. Theuser application 122 accesses the features and/or attributes of theproduct 150 via the supported APIs 127.

FIG. 2 illustrates an example in which the user application 122 includesan API function invocation 210. The API function is a computerexecutable procedure that facilitates the user application 122 to accessan attribute or feature of the product 150. In an example, each of theAPIs 127 includes the API function. For example, the API function mayfacilitate the user application 122 to determine a status of the product150, or request the product 150 to execute a procedure, such as anencryption, a media playback, a computation, or any other suchinteraction with the product 150. In an example, the product 150completes execution of the API function in response to the API functioninvocation 210 and returns a result of the execution to the userapplication 122. For example, the product 150 returns the status, or anencryption key, or a result of an encryption, or result of acomputation, or any other result corresponding to the API function theuser application 122 invokes. As part of the API function invocation210, the user application 122 may send to the product 150, one or moreparameters. The parameters may contain values to be used duringexecution of the API function. Alternatively or in addition, theparameters may contain result values that the product 150 returns to theuser application 122 upon execution of the API function.

In the illustrated example, “CSNBAPG” is a name of the API function thatthe user application 122 invokes, followed by parameters. In an example,the parameters may include addresses of memory locations. The product150, based on the addresses, may access values stored at the memorylocations, and/or write values back to the memory locations, for exampleas part of the results. Typically, the user application 122 uses thesame programming language as the programming language of a specific API,such as API-1 127A. The user application 122 thus is not able to use anyof the other APIs, such as API-2 127B, and API-N 127N. For example,consider that the user application 122 is a test program to test the APIfunction. The user in this case has to develop and execute N differenttest programs, each test program compatible with a respective API fromthe APIs 127.

FIG. 3 illustrates another example user application 122, based on thetechnical solutions described herein, in which the user application 122includes an API function invocation 310 that is compatible with any ofthe APIs 127, irrespective of the programming language of the userapplication 122 and the APIs 127. The API function invocation 310includes an identification of the API function to be executed, followedby a sequence of identifiers of types of parameters(%d%d%d%s%d%s%d%s%s%s%s%s%d%s%s), further followed by the parameters.The API function invocation 310 requests the same API function“CSNBAPG,” as the API function invocation 210 in FIG. 2.

The GLAI 125 acts as an interface between the user application 122, andthe API languages supported by the product 150. In an example, the userapplication 122 identifies which one of the APIs 127 to use. The GLAI125 hides communication between the programming languages of the userapplication 122 and the selected API from the user. In an example, theAPIs 127 provide identical functionality, for example by including APIfunctions with similar names and parameter definitions. Further, theAPIs 127 may not contain language specific functionality, for example,which is not supported by a programming language of another API.

FIG. 4 illustrates example components of the GLAI 125. In an example,the GLAI 125 includes a GLAI invoker 410, an interpreter library 420,and a GLAI communicator 430, among other components.

The GLAI invoker 405 facilitates the user application 122 to communicatewith the GLAI 125. In an example, the GLAI invoker 410 includes afunction named “call_method” (illustrated in FIG. 3), which the userapplication 122 includes and uses to invoke the API function. In anexample, the user application 122 informs the GLAI 125, via the“call_method,” which API language to use. For example, the userapplication 122 includes an “API Function Name” and “Parameter Data,”and additionally identifies an API to use, such as by specifying an APIidentifier. In an example, the user application 122 specifies the APIidentifier during an initialization of the GLAI 125. In an example, GLAI125 includes more than one GLAI invoker 410, each GLAI invoker using thesame programming language as the user application 122. Further the GLAIinvoker 410 controls a communication protocol between the interpreterlibrary 420 and the user application 122 via the GLAI communicator 430.

The interpreter library 420 communicates information between the GLAIcommunicator 430 and the product 150. For example, the interpreterlibrary 420 forwards data, such as parameter values from the APIfunction to the product 150. The interpreter library 420 additionallyreturns data, such as result from the product 150 API back to the userapplication 122 via the GLAI communicator 430. In an example, theinterpreter library 420 includes more than one interpreters,interpreter-1 405A, interpreter-2 405B, and interpreter-N 405N. Eachinterpreter 405A-405N corresponds to an API 127A-127N from the APIs 127that the product 150 supports. For example, if the API-1 127A is inprogramming language Z, which may be any programming language, theinterpreter-1 405A facilitates executing the API function using theprogramming language Z. In an example, without the interpreter library420 including an interpreter of the programming language Z, the userapplication 122 may not be able to use GLAI to communicate to the API-1127A in the programming language Z.

FIG. 5 illustrates an example in which the GLAI 125 is updated toinclude an interpreter for a specified programming language. The GLAI125 receives the API function invocation 310 from that user application122, as shown at block 505. Consider that the user application 122 usesthe programming language Z, which may be any programming language. TheGLAI invoker 410 may determine if the interpreter library 420 supportsthe programming language Z, as shown at block 510. For example, the GLAIinvoker determines if the interpreter library 420 contains aninterpreter that corresponds to the programming language Z. If theinterpreter for the programming language Z exists, the GLAI 125continues to call the API function, as shown at blocks 520 and 525.Else, if the interpreter library 420 does not support the programminglanguage Z, the GLAI 125 raises an error, as shown at block 530. In anexample, in response to the error, the user may add the interpreter forthe programming language Z. The GLAI 125 waits for the addition of theinterpreter and in response to the addition of the interpreter calls theAPI function, as shown at blocks 530 and 525. Thus, the GLAI 125 can beupdated to support any programming language that the user is comfortableto develop the user application 122 in.

The GLAI communicator 430 facilitates the interpreter library 420 tocommunicate data back and forth with the GLAI invoker 410. In anexample, the GLAI communicator 430 creates a record that the componentsof the GLAI 125 use to share data. For example, the record is a datastructure such as a data stream, a file, or any other data structure. Inan example, the GLAI communicator 430 creates the record in the memory120, for example the volatile memory, or the non-volatile memory andshares the location of the record with the other components. Forexample, the GLAI communicator 430 creates the record at a memoryaddress that is accessible by the GLAI invoker 410 and the interpreterlibrary 420. The GLAI communicator 430 subsequently identifies thememory address to the GLAI invoker 410 and the interpreter library 420.In another example, the GLAI communicator 430 creates the record at apredetermined memory address that the GLAI invoker 410 and theinterpreter library 420 already know. The GLAI invoker 410 and theinterpreter library 420 each may independently access data stored in therecord, and store data into the record.

In addition, the GLAI communicator 430 informs the GLAI invoker 410 whenthe interpreter library 420 has called the API function and also whenthe product 150 has completed execution of the API function. Forexample, the GLAI communicator 430 creates another record, such asanother file or data stream to indicate the completion. Alternatively,the GLAI communicator 430 stores a completion identifier, such as apredefined symbol in the record that was used to communicate databetween the GLAI invoker 410 and the interpreter library 420. In yetanother example, the GLAI communicator 430 may add the completionidentifier in a predetermined address in the memory 120 to identify thatthe API function has been executed. By using the memory 120, by creatingthe record(s), such as files and/or data streams, the GLAI 125facilitates an improved cross-platform compatibility compared to pipesand/or sockets.

FIG. 6 illustrates a flowchart of the user application 122 invoking theAPI function of an API, which uses a different programming language thanthe user application 122. FIG. 7 illustrates an example operation of theflowchart in an illustrative scenario in which the user application 122uses a programming language A and invokes an API function from an APIthat uses a programming language B. The GLAI 125 receives the APIfunction invocation 310, as shown at block 605. The user application122, written in the programming language A may initialize the GLAI 125during the user application's build process by including the GLAIinvoker 410 for the programming language A. In FIG. 7, Si illustratesthe user application 122 invoking the API function. The user application122 invokes the GLAI 125 by calling the “call_method” function with theparameters. In an example, the parameters include options that informthe GLAI invoker 410 of which API among other settings. The parametersfurther include an API function Name of the API function to call in theproduct's API. In addition or alternatively, the parameters includeparameter values associated with the function name in the product's API.

The GLAI 125 initiates the execution of the API function, as shown atblock 620. For example, as part of the initiation, the GLAI invoker 410identifies the API to use, which uses the programming language B, asshown at block 612. The GLAI invoker 410 identifies the API based on theAPI identifier, or the API function name in the API function invocation310. Further, the GLAI communicator 430 initiates the record, as shownat block 614. For example, the GLAI communicator 430 creates a record.In an example, the GLAI communicator 430 deletes a previous record thatwas created for a previous API function invocation. Alternatively, incase the GLAI 125 uses a predetermined memory address as the record, theGLAI communicator 430 clears the record at the predetermined memoryaddress. Further yet, the GLAI communicator 430 stores the parametervalues into the record for use during execution of the API function bythe product 150, as shown at block 616. The GLAI invoker 410 selects theinterpreter to use based on the programming language A and/or theprogramming language B, as shown at block 618.

FIG. 7 illustrates the GLAI communicator 430 using a file named ‘I/OFile’ as the record to communicate the parameter and results between theuser application 122, the product 150, and the components of the GLAI125. In addition, the example in FIG. 7 illustrates the GLAIcommunicator 430 using another file named ‘Indicator File’ to signalcompletion of the execution of the API function. Accordingly, in FIG. 7,the GLAI communicator deletes these two files from a previous APIfunction and creates a new I/O file and a new Indicator file as therecords, as shown at S3. The GLAI communicator 430 stores the parameterdata in the I/O file and waits for the interpreter to signal completionof the API function via the Indicator file. Here, the interpreter forthe programming language B is selected.

The GLAI 125 further causes the API function to execute, as shown atblock 620. To this end, the selected interpreter reads the parameterdata from the record, as shown at block 622. In the case illustrated inFIG. 7, the interpreter library reads the data from the I/O file, asshown at S3. The selected interpreter sends the API function and theparameter data to the product 150 for execution, as shown at block 624.For example, the interpreter library 420 calls the product API in theAPI's programming language with the API function name and parameterdata, as shown at S4 in FIG. 7. The selected interpreter library 420waits for the product 150 to complete executing the API function. Theinterpreter library 420 stores results from the product 150 in therecord, as shown at block 626. In the example scenario, the result isstored in the I/O file as shown at S5 in FIG. 7. In an example, theresult may be stored as a value of a parameter that was earlier storedin the record. The interpreter library 420 signals the completion of theexecution, as shown at block 628. For example, the interpreter library420 updates the completion record, such as the Indicator file in FIG. 7.Alternatively, the interpreter library 420 updates the record, such asthe I/O file with a predefined completion identifier.

The GLAI invoker 410 resumes execution in response to the completionsignal. The GLAI invoker 410 reads the parameter data and the resultdata from the record, such as from the I/O file of FIG. 7, and writesthe result back to the API function invocation 310, as shown at block630. For example, the API function invocation 310 identifies the resultparameters or the memory addresses of the result parameters. The GLAIinvoker 410 writes the parameter data and the results into theparameters and/or the memory addresses identified by the API functioninvocation 310, and returns execution back to user application 122, asshown at block 640. Thus, the GLAI 125 facilitates the user application122 that is in programming language A to call the product API in targetlanguage B.

In an example, the user application 122 may use more than one of theAPIs 127 that the product 150 supports. For example, the userapplication 122, which is in a first programming language, may include afirst API function invocation that uses the API-1 127A, which is in asecond programming language. The user application 122 may furtherinclude a second API function invocation that uses the API 128A, whichis in a third programming language. The GLAI 125, for each API functioninvocation, selects a respective interpreter corresponding to therespective programming languages of the APIs. In an example, the GLAI125 creates separate records for each API function invocation.Alternatively, the GLAI 125 uses the same record, such as at thepredetermined memory location, for both API function invocation.

The technical solutions described herein facilitate a user application,which is developed in a programming language, such as C or any otherprogramming language to link and call a method/function that isdeveloped in a different programming language, such as JAVA or any otherprogramming language. Further, if the other programming language supportis not present on the system that is executing the user application (forexample, (user application calls a CNM.jar file and JAVA is notpresent), the system returns an error. The user may add an interpreterfor JAVA to facilitate the system to execute the API function call inthe user application.

Consider an example where the user application in C programming languageis calling an API function in JAVA. For example, the API function may bein a pre-compiled JAVA program. In an example, a record such as anintermediate file in which are the method name, parameter definitions,and parameter values for the API function to be executed by the JAVAprogram. Next, the pre-compiled JAVA program is executed identifying theparameters and data in the intermediate file and other arguments. Forexample, the JAVA program reads in the intermediate file, finds, andcalls the specified method with the supplied parameters. The JAVAprogram then rewrites to the intermediate file, the output from themethod call and creates an indicator file to indicate to the userapplication in the C programming language that the JAVA API functionexecution is complete. According to the technical solutions, in responseto the intermediate file being created, the intermediate file is readand the parameter values are returned to the user application. Further,execution control is returned to the user application to continue. Thus,the technical solutions do not affect the user application (such asfailure) if JAVA support is not present on the system executing the userapplication, and further facilitates the user application to link toJAVA support files, such as a JAR file and call a JAVA API function,without using sockets/piping.

The present invention may be a system, a method, and/or a computerprogram product at any possible technical detail level of integration.The computer program product may include a computer readable storagemedium (or media) having computer readable program instructions thereonfor causing a processor to carry out aspects of the present invention.

The computer readable storage medium can be a tangible device that canretain and store instructions for use by an instruction executiondevice. The computer readable storage medium may be, for example, but isnot limited to, an electronic storage device, a magnetic storage device,an optical storage device, an electromagnetic storage device, asemiconductor storage device, or any suitable combination of theforegoing. A non-exhaustive list of more specific examples of thecomputer readable storage medium includes the following: a portablecomputer diskette, a hard disk, a random access memory (RAM), aread-only memory (ROM), an erasable programmable read-only memory (EPROMor Flash memory), a static random access memory (SRAM), a portablecompact disc read-only memory (CD-ROM), a digital versatile disk (DVD),a memory stick, a floppy disk, a mechanically encoded device such aspunch-cards or raised structures in a groove having instructionsrecorded thereon, and any suitable combination of the foregoing. Acomputer readable storage medium, as used herein, is not to be construedas being transitory signals per se, such as radio waves or other freelypropagating electromagnetic waves, electromagnetic waves propagatingthrough a waveguide or other transmission media (e.g., light pulsespassing through a fiber-optic cable), or electrical signals transmittedthrough a wire.

Computer readable program instructions described herein can bedownloaded to respective computing/processing devices from a computerreadable storage medium or to an external computer or external storagedevice via a network, for example, the Internet, a local area network, awide area network and/or a wireless network. The network may comprisecopper transmission cables, optical transmission fibers, wirelesstransmission, routers, firewalls, switches, gateway computers and/oredge servers. A network adapter card or network interface in eachcomputing/processing device receives computer readable programinstructions from the network and forwards the computer readable programinstructions for storage in a computer readable storage medium withinthe respective computing/processing device.

Computer readable program instructions for carrying out operations ofthe present invention may be assembler instructions,instruction-set-architecture (ISA) instructions, machine instructions,machine dependent instructions, microcode, firmware instructions,state-setting data, configuration data for integrated circuitry, oreither source code or object code written in any combination of one ormore programming languages, including an object oriented programminglanguage such as Smalltalk, C++, or the like, and procedural programminglanguages, such as the “C” programming language or similar programminglanguages. The computer readable program instructions may executeentirely on the user's computer, partly on the user's computer, as astand-alone software package, partly on the user's computer and partlyon a remote computer or entirely on the remote computer or server. Inthe latter scenario, the remote computer may be connected to the user'scomputer through any type of network, including a local area network(LAN) or a wide area network (WAN), or the connection may be made to anexternal computer (for example, through the Internet using an InternetService Provider). In some embodiments, electronic circuitry including,for example, programmable logic circuitry, field-programmable gatearrays (FPGA), or programmable logic arrays (PLA) may execute thecomputer readable program instructions by utilizing state information ofthe computer readable program instructions to personalize the electroniccircuitry, in order to perform aspects of the present invention.

Aspects of the present invention are described herein with reference toflowchart illustrations and/or block diagrams of methods, apparatus(systems), and computer program products according to embodiments of theinvention. It will be understood that each block of the flowchartillustrations and/or block diagrams, and combinations of blocks in theflowchart illustrations and/or block diagrams, can be implemented bycomputer readable program instructions.

These computer readable program instructions may be provided to aprocessor of a general purpose computer, special purpose computer, orother programmable data processing apparatus to produce a machine, suchthat the instructions, which execute via the processor of the computeror other programmable data processing apparatus, create means forimplementing the functions/acts specified in the flowchart and/or blockdiagram block or blocks. These computer readable program instructionsmay also be stored in a computer readable storage medium that can directa computer, a programmable data processing apparatus, and/or otherdevices to function in a particular manner, such that the computerreadable storage medium having instructions stored therein comprises anarticle of manufacture including instructions which implement aspects ofthe function/act specified in the flowchart and/or block diagram blockor blocks.

The computer readable program instructions may also be loaded onto acomputer, other programmable data processing apparatus, or other deviceto cause a series of operational steps to be performed on the computer,other programmable apparatus or other device to produce a computerimplemented process, such that the instructions which execute on thecomputer, other programmable apparatus, or other device implement thefunctions/acts specified in the flowchart and/or block diagram block orblocks.

The flowchart and block diagrams in the Figures illustrate thearchitecture, functionality, and operation of possible implementationsof systems, methods, and computer program products according to variousembodiments of the present invention. In this regard, each block in theflowchart or block diagrams may represent a module, segment, or portionof instructions, which comprises one or more executable instructions forimplementing the specified logical function(s). In some alternativeimplementations, the functions noted in the blocks may occur out of theorder noted in the Figures. For example, two blocks shown in successionmay, in fact, be executed substantially concurrently, or the blocks maysometimes be executed in the reverse order, depending upon thefunctionality involved. It will also be noted that each block of theblock diagrams and/or flowchart illustration, and combinations of blocksin the block diagrams and/or flowchart illustration, can be implementedby special purpose hardware-based systems that perform the specifiedfunctions or acts or carry out combinations of special purpose hardwareand computer instructions.

The descriptions of the various embodiments of the present inventionhave been presented for purposes of illustration, but are not intendedto be exhaustive or limited to the embodiments disclosed. Manymodifications and variations will be apparent to those of ordinary skillin the art without departing from the scope and spirit of the describedembodiments. The terminology used herein was chosen to best explain theprinciples of the embodiments, the practical application, or technicalimprovement over technologies found in the marketplace, or to enableothers of ordinary skill in the art to understand the embodimentsdisclosed herein.

What is claimed is:
 1. A system for facilitating a first computerprogram product to communicate with a second computer program product,the system comprising: a memory comprising computer executableinstructions of the first program product, wherein the computerexecutable instructions includes an invocation of an applicationprogramming interface (API) function from an API of the second computerprogram product, wherein the computer executable instructions of thefirst computer program product are in a first programming language; anda processor configured to execute the API function of the secondcomputer program product using a second programming language and a thirdprogramming language, which are distinct from the first programminglanguage, wherein the execution of the API function using the secondprogramming language comprises: initiation of a first recordcorresponding to the execution of the API function of the secondcomputer program product using an interpreter of the second programminglanguage, the first record storing a first result of the execution ofthe API function; and returning, to the first computer program product,the first result of the execution of the API function from the firstrecord; and wherein for execution of the API function using the thirdprogramming language, the processor is configured to: initiation of asecond record corresponding to the execution of the API function of thesecond computer program product using an interpreter of the thirdprogramming language, the second record storing a second result of theexecution of the API function; and returning, to the first computerprogram product, the second result of the execution of the API functionfrom the second record.
 2. The system of claim 1, wherein the processoris further configured to: receive, from the first computer programproduct, an identification of the API of the second computer programproduct; and identify an interpreter to invoke based on theidentification of the API.
 3. The system of claim 1, wherein theprocessor is further configured to: store, in the record, a value of aparameter for the API function; and access, from the record, the valueof the parameter as part of the result, in response to an indicationthat execution of the API function is complete.
 4. The system of claim1, wherein initiating the record comprises: deleting a previous record;creating, in computer readable memory, the record, which is a datastructure that is accessible by the interpreter; and identifying, to theinterpreter, a location of the record in the computer readable memory.5. The system of claim 1, wherein the first record and the second recordare at predetermined locations in computer readable memory,respectively.
 6. The system of claim 1, wherein the processor is furtherconfigured to add the interpreter corresponding to the secondprogramming language to a set of existing interpreters.
 7. The system ofclaim 1, wherein the processor is further configured to: execute theinterpreter corresponding to the second programming language that callsthe API function in the second programming language.
 8. The system ofclaim 1, wherein the processor is further configured to: execute theinterpreter corresponding to the third programming language that callsthe API function in the third programming language.
 9. A computerprogram product for facilitating a first computer program product tocommunicate with a second computer program product, the computer productcomprising a computer readable storage medium, the computer readablestorage medium comprising computer instructions executable by aprocessing circuit, wherein the computer instructions cause theprocessing circuit to: receive, from the first computer program product,an invocation of an application programming interface (API) functionfrom an API of the second computer program product, wherein the computerexecutable instructions of the first computer program product are in afirst programming language; execute the API function of the secondcomputer program product using a second programming language and a thirdprogramming language, which are distinct from the first programminglanguage, wherein the execution of the API function using the secondprogramming language comprises: initiation of a first recordcorresponding to the execution of the API function of the secondcomputer program product using an interpreter of the second programminglanguage, the first record storing a first result of the execution ofthe API function; and returning, to the first computer program product,the first result of the execution of the API function from the firstrecord; and wherein execution of the API function using the thirdprogramming language comprises: initiation of a second recordcorresponding to the execution of the API function of the secondcomputer program product using an interpreter of the third programminglanguage, the second record storing a second result of the execution ofthe API function; and returning, to the first computer program product,the second result of the execution of the API function from the secondrecord.
 10. The computer program product of claim 9, wherein thecomputer instructions cause the processing circuit to: receive, from thefirst computer program product, an identification of the API of thesecond computer program product; and identify an interpreter to invokebased on the identification of the API.
 11. The computer program productof claim 9, wherein the computer instructions cause the processingcircuit to: store, in the record, a value of a parameter for the APIfunction; and access, from the record, the value of the parameter aspart of the result, in response to an indication that execution of theAPI function is complete.
 12. The computer program product of claim 9,wherein initiating the record comprises: deleting a previous record;creating, in computer readable memory, the record, which is a datastructure that is accessible by the interpreter; and identifying, to theinterpreter, a location of the record in the computer readable memory.13. The computer program product of claim 9, wherein the first recordand the second record are at predetermined locations in computerreadable memory, respectively.
 14. The computer program product of claim9, wherein the computer instructions cause the processing circuit to:add the interpreter corresponding to the second programming language toa set of existing interpreters.
 15. The computer program product ofclaim 9, wherein the computer instructions cause the processing circuitto: execute the interpreter corresponding to the second programminglanguage that calls the API function in the second programming language.16. The computer program product of claim 9, wherein the computerinstructions cause the processing circuit to: execute the interpretercorresponding to the third programming language that calls the APIfunction in the third programming language.